From: kfraser@localhost.localdomain Date: Wed, 2 Aug 2006 09:13:30 +0000 (+0100) Subject: [TOOLS] lomount: Fix printf formats inside #ifdef DEBUG. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15754^2~9 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=c407ff43f456fa6f158dd1628396451f2c1bcf39;p=xen.git [TOOLS] lomount: Fix printf formats inside #ifdef DEBUG. Signed-off-by: Tristan Gingold --- diff --git a/tools/misc/lomount/lomount.c b/tools/misc/lomount/lomount.c index d04a95bfc4..7b86683bef 100644 --- a/tools/misc/lomount/lomount.c +++ b/tools/misc/lomount/lomount.c @@ -158,7 +158,7 @@ load_gpt (const char *diskimage, struct pentry *parttbl[]) entry_size = read_le4 (&data[84]); #ifdef DEBUG - fprintf(stderr, "lba entries: %lu, nbr_part: %u, entry_size: %lu\n", + fprintf(stderr, "lba entries: %llu, nbr_part: %u, entry_size: %lu\n", entries_lba, nbr_part, entry_size); #endif part = malloc (nbr_part * sizeof (struct pentry)); @@ -404,7 +404,7 @@ int main(int argc, char ** argv) value is off by (larger than) a value less than one. */ sec = 512; /* TODO: calculate real sector size */ #ifdef DEBUG - printf("sec: %d\n", sec); + printf("sec: %llu\n", sec); #endif if (partition > nbr_part) { @@ -421,7 +421,7 @@ int main(int argc, char ** argv) pnum = sec * num; #ifdef DEBUG - printf("offset = %d\n", pnum); + printf("offset = %llu\n", pnum); #endif snprintf(buf, sizeof(buf), "mount -oloop,offset=%lld %s %s", pnum, diskimage, argv2);